﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Entity
{
    public class GroupImage
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public string Tag { get; set; }
        public string Level { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Keyword { get; set; }
        public string Ord { get; set; }
        public string Active { get; set; }
        public string Index { get; set; }
        public string Lang { get; set; }
        public GroupImage GroupImageIDataReader(IDataReader dr)
        {
            return new GroupImage
                       {
                           Id = Convert.ToString(dr["Id"]),
                           Name = Convert.ToString(dr["Name"]),
                           Tag = Convert.ToString(dr["Tag"]),
                           Level = Convert.ToString(dr["Level"]),
                           Title = Convert.ToString(dr["Title"]),
                           Description = Convert.ToString(dr["Description"]),
                           Keyword = Convert.ToString(dr["Keyword"]),
                           Ord = Convert.ToString(dr["Ord"]),
                           Active = Convert.ToString(dr["Active"]),
                           Index = Convert.ToString(dr["Index"]),
                           Lang = Convert.ToString(dr["Lang"]),
                       };
        }
    }

}
